
#ifndef _MEMBER_BBUTTON_H_
#define _MEMBER_BBUTTON_H_

#include <BColor>
#include <BIcon>
#include <BImage>
#include <BButton>

#define button_member(button)		((member_BButton*)((BButton*)button)->_ptr)

namespace BWE
{
	class member_BButton
	{
	public:
		member_BButton(BButton* button);
		~member_BButton();

		void freshRects();
		
		BButton*		boss;
		Align			align;
		BColor			color;
		BString			text;
		BIconHolder		icon;
		BSize			iconSize;
		BImageHolder	image;
		BSize			imageSize;
		bool			iconAlone;
		bool			checkable;
		bool			checked;
		int				space;

		bool			dirty;
		BString			t_text;
		BSize			textSize;
		BRect			textRect;
		BRect			iconRect;
		BRect			imageRect;
		BSize			realIconSize;
		State			state;

	};
}

#endif